package com.sec.domain.mysql.view;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 用户和权限的视图
 * Created by Administrator on 2017/11/3.
 */
@Entity
@Table(name = "user_view")
public class UserView implements Serializable{
    @Id
    @Column(name = "user_id")
    private Long userId;
    @Basic
    @Column(name = "username")
    private String username;
    @Basic
    @Column(name = "password")
    private String password;
    @Id
    @Column(name = "role_id")
    private Long roleId;
    @Basic
    @Column(name = "role_name")
    private String roleName;
    @Id
    @Column(name = "perm_id")
    private Long permId;
    @Basic
    @Column(name = "perm_name")
    private String permName;
    @Id
    @Column(name = "resource_id")
    private Long resourceId;
    @Basic
    @Column(name = "resource_name")
    private String resourceName;
    @Basic
    @Column(name = "url")
    private String url;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getPermId() {
        return permId;
    }

    public void setPermId(Long permId) {
        this.permId = permId;
    }

    public String getPermName() {
        return permName;
    }

    public void setPermName(String permName) {
        this.permName = permName;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
